<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateGoodCartsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('good_carts', function (Blueprint $table) {
            $table->increments('id');
            $table->string('isbn');
            $table->string('inStockCount', 50)->default(0);
            $table->integer('hasReserved')->default(0);
            $table->integer('type')->default('1')->comment('dzy:1,zz:2,myj:3');
            $table->integer('price');
            $table->integer('remind')->comment('到货');
            $table->integer('item_id');
            $table->bigInteger('other_id');
            $table->integer('myj')->default(0);
            $table->integer('zhuanzhuan')->default(0);
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('good_carts');
    }
}
